/* Copyright (c) [2025] [zhi1208@126.com]
 * SPDX-License-Identifier: MIT
 */

/*********************
 *      INCLUDES
 *********************/
#include "lvgl.h"

/*********************
 *      DEFINES
 *********************/
#if (!LV_USE_TRANSLATION)
#error "在lv_conf.h文件中启用宏【LV_USE_TRANSLATION】"
#endif

/**********************
 *      TYPEDEFS
 **********************/

/**********************
 *  STATIC PROTOTYPES
 **********************/

/**********************
 *  STATIC VARIABLES
 **********************/
static const char *languages[] = {"zh", "en", NULL};
static const char *tags[] = {
    /* 控制中心 */
    "控制中心",

    /* 主页 */
    "星期一",
    "星期二",
    "星期三",
    "星期四",
    "星期五",
    "星期六",
    "星期日",
    "未知",
    "灯带",

    /* 设置页面 */
    "设置",
    "未连接",
    "蓝牙",
    "显示",
    NULL};
static const char *translations[] = {
    /* 控制中心 */
    "控制中心",
    "Control Center",

    /* 主页 */
    "星期一",
    "Mon",
    "星期二",
    "Tue",
    "星期三",
    "Wed",
    "星期四",
    "Thu",
    "星期五",
    "Fri",
    "星期六",
    "Sat",
    "星期日",
    "Sun",
    "未知",
    "unknown",
    "灯带",
    "Led Strip",

    /* 设置页面 */
    "设置",
    "Setting",
    "未连接",
    "Disconnected",
    "蓝牙",
    "Bluetooth",
    "显示",
    "Display"};

/**********************
 *      MACROS
 **********************/

/**********************
 *   GLOBAL FUNCTIONS
 **********************/
void hmi_translation_init()
{
    lv_translation_add_static(languages, tags, translations);
}

/**********************
 *   STATIC FUNCTIONS
 **********************/
